#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ptree_fwd.hpp>

extern boost::property_tree::ptree config;
enum ErrorCodes { Success = 0, UidInvalid = 1001, TokenInvalid = 1002 };

#define USER_IP_PREFIX "uid_"
#define USER_TOKEN_PREFIX "utoken_"
#define IP_COUNT_PREFIX "ipcount_"
#define USER_BASE_INFO "ubaseinfo_"
#define LOGIN_COUNT "logincount"